package com.citytechinc.cmis.client.event
{
	import com.citytechinc.cmis.client.model.Folder;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	public class ChildrenEvent extends Event
	{
		public static const REPO_CHILDREN:String = "repositoryChildren";
		public static const FOLDER_CHILDREN:String = "folderChildren";
		
		public var folder:Folder;
		
		public var folders:ArrayCollection;
		public var documents:ArrayCollection;
		
		public function ChildrenEvent(type:String, folder:Folder, folders:ArrayCollection, documents:ArrayCollection)
		{
			super(type);
			
			this.folder = folder;
			
			this.folders = folders;
			this.documents = documents;
		}
		
		override public function clone():Event
		{
			return new ChildrenEvent(this.type, folder, folders, documents);
		}

	}
	
}